/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.source.entity.week;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 星期资源管理Entity
 * @author ZC
 * @version 2017-06-19
 */
@XmlRootElement(name="weekcfg")
public class EleSourceWeek extends DataEntity<EleSourceWeek> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名称
	private String mode;		// mode
	private String color;		// 字体颜色
	private String size;		// 字体大小
	private String area;
	
	public EleSourceWeek() {
		super();
	}

	public EleSourceWeek(String id){
		super(id);
	}
	@XmlTransient
	@Length(min=0, max=50, message="名称长度必须介于 0 和 50 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	@XmlTransient
	@Length(min=0, max=255, message="mode长度必须介于 0 和 255 之间")
	public String getMode() {
		return mode;
	}

	public void setMode(String mode) {
		this.mode = mode;
	}
	
	@XmlElement(name = "color")  
	@Length(min=0, max=100, message="字体颜色长度必须介于 0 和 100 之间")
	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}
	
	@XmlElement(name = "size")  
	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}
	@XmlElement(name = "area")  
	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}
}